package com.jgc.stage01.实现线程方式;

/**
 * Created by Administrator on 2022/2/10.
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        //开始执行MyRunnable
        while (true){
            System.out.println("执行" + this.getClass());
            try {
                Thread.sleep(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }
}
